<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="content">
        <div class="depInfo">
            <div id="dep">
                <h2 style="margin-left: 10px;text-align: center;">肝胆外科</h2>
                <div>
                    <span style="line-height: 20px;font-size: 20px;">
                        我们的>肝胆外科专家团队由一群经验丰富、高度资深的肝胆外科医生组成
                        。他们具有卓越的专业背景和卓越的技术水平，致力于为患者提供高质量的肝胆外科护理。
                    </span>
                </div>
            </div>
        </div>
        <div class="docInfo">
             <div class="docImg">
             </div>
             <div class="specific">
                <div>
                    <span>医生姓名： Dr. 张明</span>
                </div>
                 <div>
                    <span>专业领域： 心脏病学</span>
                 </div>
                 <div class="back">教育背景
                    <ul>
                        <li>医学学士学位 - 北京医科大学</li>
                        <li>内科住院医师培训 - 北京市人民医院</li>
                        <li>心脏病学专科培训 - 北京心血管研究所</li>
                    </ul>
                 </div>
                 <div class="expe">
                    临床经验
                    <ul>
                        <li>心脏病学主治医生 - 北京市心脏医院（5年）</li>
                        <li>心脏病学资深专家 - 北京心血管中心（目前职位）</li>
                    </ul>
                 </div>
                <div id="dropdowndiv">
                    <div>
                    <label for="dropdown">预约时间</label>
                    <select id="dropdown">
                      <option value="option1">14:00</option>
                      <option value="option2">17:00</option>
                      <option value="option3">8:00</option>
                      <!-- 添加更多选项，根据需要 -->
                    </select>
                    </div>
                    <div style="margin-top: 10px;">
                        <button onclick="showPopup()">确认预约</button>
                    </div>
                    <div id="popup">
                        <p>金额: $100</p>
                        <button onclick="payNow()">立即支付</button>
                        <button onclick="delayPayment()">延期支付</button>
                    </div>
                    
                </div>


             </div>
        </div>
    </div>
</body>
<script>
    function showPopup(){
        document.getElementById('popup').style.display = 'block';
    }
    function payNow() {
      alert('支付成功！');
      document.getElementById('popup').style.display = 'none';
    }

    function delayPayment() {
      alert('支付已延期！');
      document.getElementById('popup').style.display = 'none';
    }

     

</script>
<style>
     body, html{
      margin: 0;
      padding: 0;
      height: 100%;
    }
    #popup {
      display: none;
      background-color: #fff;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
      padding: 20px;
      text-align: center;
    }
    .content{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        .depInfo{
            position: relative;
            width: 100%;
            height: 300px;
            background-image: url("./images/科室.png");
            #dep{
                width: 400px;
                height: 80%;
                /* background-color: antiquewhite; */
                position:absolute;
                top:50px;
                left:36%;
               
                z-index: 1;
            }
        }
        .docInfo{
            width: 100%;
            height: 300px;
            background-color:rgb(153, 182, 183) ;
            display: flex;
            flex-direction: row;
            justify-content: center;
            .docImg{
                margin: 20px 0px 50px 100px;
                background-image: url("./images/doc1.png");
                width: 180px;
                height: 250px;
            }
            .specific{
                margin: 20px 0px 50px 100px;
                /* background-color: rgb(39, 159, 95); */
                width: 600px;
                height: 250px;
                display: flex;
                flex-direction: row;
                position: relative;
            }
            #dropdowndiv{
                 /* flex: 1; */
                 background-color: aquamarine;
                 position:absolute;
                 right:-200px;
                 height: 250px;
                 

            }

        }
    }

</style>
</html>